if(ESP_PLATFORM)


set(srcs "PN532.cpp" "PN532_HardwareSerial.cpp" "PN532_HSU.cpp")
set(requires "driver")

idf_component_register(SRCS ${srcs}
                    INCLUDE_DIRS "."
                    REQUIRES ${requires})

else()
    message(FATAL_ERROR "componentes pn532: ESP_PLATFORM is not defined. Try reinstalling ESP-IDF.")
endif()


